{ //=========Macro generated from canvas: DeltaInvP all fits/ //========= (Sat Mar 14 16:58:42 2009) by ROOT version5.22/00 TCanvas *DeltaInvP all fits = new TCanvas("DeltaInvP all fits", "",526,44,600,600); DeltaInvP all fits->SetHighLightColor(2); DeltaInvP all fits->Range(-0.773026,-6.215155,2.673676,0.5357038); DeltaInvP all fits->SetFillColor(10); DeltaInvP all fits->SetBorderMode(0); DeltaInvP all fits->SetBorderSize(2); DeltaInvP all fits->SetLogx(); DeltaInvP all fits->SetLogy(); DeltaInvP all fits->SetTickx(1); DeltaInvP all fits->SetTicky(1); DeltaInvP all fits->SetLeftMargin(0.19); DeltaInvP all fits->SetRightMargin(0.06); DeltaInvP all fits->SetTopMargin(0.08); DeltaInvP all fits->SetBottomMargin(0.18); DeltaInvP all fits->SetFrameLineWidth(2); DeltaInvP all fits->SetFrameBorderMode(0); DeltaInvP all fits->SetFrameLineWidth(2); DeltaInvP all fits->SetFrameBorderMode(0); TH1 *hpx = new TH2F("hpx","",10,0.65,250,10,1e-05,0.99); hpx->SetStats(0); hpx->SetLineWidth(2); hpx->SetMarkerStyle(20); hpx->SetMarkerSize(1.3); hpx->GetXaxis()->SetTitle("Momentum/GeV"); hpx->GetXaxis()->SetNdivisions(506); hpx->GetXaxis()->SetLabelFont(42); hpx->GetXaxis()->SetLabelOffset(0.015); hpx->GetXaxis()->SetTitleSize(0.07); hpx->GetXaxis()->SetLabelSize(0.06); hpx->GetXaxis()->SetTitleFont(42); hpx->GetYaxis()->SetTitle("#sigma_{1/pt} /GeV^{-1}"); hpx->GetYaxis()->SetNdivisions(506); hpx->GetYaxis()->SetLabelFont(42); hpx->GetYaxis()->SetLabelOffset(0.015); hpx->GetYaxis()->SetTitleSize(0.07); hpx->GetYaxis()->SetLabelSize(0.06); hpx->GetYaxis()->SetTitleOffset(1.3); hpx->GetYaxis()->SetTitleFont(42); hpx->GetZaxis()->SetLabelFont(42); hpx->GetZaxis()->SetLabelOffset(0.015); hpx->GetZaxis()->SetTitleSize(0.07); hpx->GetZaxis()->SetTitleOffset(1.1); hpx->GetZaxis()->SetTitleFont(42); hpx->Draw(""); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); multigraph->SetTitle(""); TGraphErrors *gre = new TGraphErrors(10); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineWidth(2); gre->SetMarkerStyle(22); gre->SetMarkerSize(1.3); gre->SetPoint(0,1,0.6033586); gre->SetPointError(0,0,0.008046111); gre->SetPoint(1,3,0.08037342); gre->SetPointError(1,0,0.000672671); gre->SetPoint(2,6,0.02509284); gre->SetPointError(2,0,0.0002044463); gre->SetPoint(3,10,0.01240279); gre->SetPointError(3,0,0.0001004772); gre->SetPoint(4,17,0.006780195); gre->SetPointError(4,0,5.443637e-05); gre->SetPoint(5,25,0.004569271); gre->SetPointError(5,0,3.785397e-05); gre->SetPoint(6,50,0.002584146); gre->SetPointError(6,0,2.089701e-05); gre->SetPoint(7,75,0.002066091); gre->SetPointError(7,0,1.633764e-05); gre->SetPoint(8,100,0.00185299); gre->SetPointError(8,0,1.455056e-05); gre->SetPoint(9,200,0.001590897); gre->SetPointError(9,0,1.212495e-05); TH1 *Graph11 = new TH1F("Graph11","Graph",100,0.9,219.9); Graph11->SetMinimum(0.001420894); Graph11->SetMaximum(0.6723873); Graph11->SetDirectory(0); Graph11->SetStats(0); Graph11->SetLineWidth(2); Graph11->SetMarkerStyle(20); Graph11->SetMarkerSize(1.3); Graph11->GetXaxis()->SetNdivisions(506); Graph11->GetXaxis()->SetLabelFont(42); Graph11->GetXaxis()->SetLabelOffset(0.015); Graph11->GetXaxis()->SetTitleSize(0.07); Graph11->GetXaxis()->SetTitleFont(42); Graph11->GetYaxis()->SetNdivisions(506); Graph11->GetYaxis()->SetLabelFont(42); Graph11->GetYaxis()->SetLabelOffset(0.015); Graph11->GetYaxis()->SetTitleSize(0.07); Graph11->GetYaxis()->SetTitleOffset(1.1); Graph11->GetYaxis()->SetTitleFont(42); Graph11->GetZaxis()->SetLabelFont(42); Graph11->GetZaxis()->SetLabelOffset(0.015); Graph11->GetZaxis()->SetTitleSize(0.07); Graph11->GetZaxis()->SetTitleOffset(1.1); Graph11->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph11); multigraph->Add(gre,"pX"); gre = new TGraphErrors(10); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineColor(2); gre->SetLineWidth(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(23); gre->SetMarkerSize(1.3); gre->SetPoint(0,1,0.0237069); gre->SetPointError(0,0,0.000246807); gre->SetPoint(1,3,0.003554108); gre->SetPointError(1,0,2.900572e-05); gre->SetPoint(2,6,0.001766006); gre->SetPointError(2,0,1.440274e-05); gre->SetPoint(3,10,0.001120257); gre->SetPointError(3,0,9.030119e-06); gre->SetPoint(4,17,0.0007119414); gre->SetPointError(4,0,5.855075e-06); gre->SetPoint(5,25,0.000518767); gre->SetPointError(5,0,4.316733e-06); gre->SetPoint(6,50,0.0002969052); gre->SetPointError(6,0,2.335157e-06); gre->SetPoint(7,75,0.0002159787); gre->SetPointError(7,0,1.680219e-06); gre->SetPoint(8,100,0.0001770229); gre->SetPointError(8,0,1.45784e-06); gre->SetPoint(9,200,0.0001219579); gre->SetPointError(9,0,9.884379e-07); TH1 *Graph22 = new TH1F("Graph22","Graph",100,0.9,219.9); Graph22->SetMinimum(0.0001088725); Graph22->SetMaximum(0.02633698); Graph22->SetDirectory(0); Graph22->SetStats(0); Graph22->SetLineWidth(2); Graph22->SetMarkerStyle(20); Graph22->SetMarkerSize(1.3); Graph22->GetXaxis()->SetNdivisions(506); Graph22->GetXaxis()->SetLabelFont(42); Graph22->GetXaxis()->SetLabelOffset(0.015); Graph22->GetXaxis()->SetTitleSize(0.07); Graph22->GetXaxis()->SetTitleFont(42); Graph22->GetYaxis()->SetNdivisions(506); Graph22->GetYaxis()->SetLabelFont(42); Graph22->GetYaxis()->SetLabelOffset(0.015); Graph22->GetYaxis()->SetTitleSize(0.07); Graph22->GetYaxis()->SetTitleOffset(1.1); Graph22->GetYaxis()->SetTitleFont(42); Graph22->GetZaxis()->SetLabelFont(42); Graph22->GetZaxis()->SetLabelOffset(0.015); Graph22->GetZaxis()->SetTitleSize(0.07); Graph22->GetZaxis()->SetTitleOffset(1.1); Graph22->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph22); multigraph->Add(gre,"pX"); gre = new TGraphErrors(10); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineColor(8); gre->SetLineWidth(2); gre->SetMarkerColor(8); gre->SetMarkerStyle(20); gre->SetMarkerSize(1.3); gre->SetPoint(0,1,0.003300982); gre->SetPointError(0,0,2.760792e-05); gre->SetPoint(1,3,0.0007700976); gre->SetPointError(1,0,6.147949e-06); gre->SetPoint(2,6,0.0003593719); gre->SetPointError(2,0,2.779889e-06); gre->SetPoint(3,10,0.0002175065); gre->SetPointError(3,0,1.713566e-06); gre->SetPoint(4,17,0.0001320697); gre->SetPointError(4,0,1.081635e-06); gre->SetPoint(5,25,9.556401e-05); gre->SetPointError(5,0,7.709431e-07); gre->SetPoint(6,50,5.888104e-05); gre->SetPointError(6,0,4.975744e-07); gre->SetPoint(7,75,4.586397e-05); gre->SetPointError(7,0,4.036578e-07); gre->SetPoint(8,100,4.017165e-05); gre->SetPointError(8,0,3.506833e-07); gre->SetPoint(9,200,2.922224e-05); gre->SetPointError(9,0,2.41098e-07); TH1 *Graph33 = new TH1F("Graph33","Graph",100,0.9,219.9); Graph33->SetMinimum(2.608303e-05); Graph33->SetMaximum(0.003658551); Graph33->SetDirectory(0); Graph33->SetStats(0); Graph33->SetLineWidth(2); Graph33->SetMarkerStyle(20); Graph33->SetMarkerSize(1.3); Graph33->GetXaxis()->SetNdivisions(506); Graph33->GetXaxis()->SetLabelFont(42); Graph33->GetXaxis()->SetLabelOffset(0.015); Graph33->GetXaxis()->SetTitleSize(0.07); Graph33->GetXaxis()->SetTitleFont(42); Graph33->GetYaxis()->SetNdivisions(506); Graph33->GetYaxis()->SetLabelFont(42); Graph33->GetYaxis()->SetLabelOffset(0.015); Graph33->GetYaxis()->SetTitleSize(0.07); Graph33->GetYaxis()->SetTitleOffset(1.1); Graph33->GetYaxis()->SetTitleFont(42); Graph33->GetZaxis()->SetLabelFont(42); Graph33->GetZaxis()->SetLabelOffset(0.015); Graph33->GetZaxis()->SetTitleSize(0.07); Graph33->GetZaxis()->SetTitleOffset(1.1); Graph33->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph33); multigraph->Add(gre,"pX"); gre = new TGraphErrors(10); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillColor(1); gre->SetLineColor(4); gre->SetLineWidth(2); gre->SetMarkerColor(4); gre->SetMarkerStyle(21); gre->SetMarkerSize(1.3); gre->SetPoint(0,1,0.0008343352); gre->SetPointError(0,0,7.397027e-06); gre->SetPoint(1,3,0.0002785661); gre->SetPointError(1,0,2.250522e-06); gre->SetPoint(2,6,0.0001382995); gre->SetPointError(2,0,1.095583e-06); gre->SetPoint(3,10,8.73834e-05); gre->SetPointError(3,0,6.958451e-07); gre->SetPoint(4,17,5.613957e-05); gre->SetPointError(4,0,4.482008e-07); gre->SetPoint(5,25,4.275892e-05); gre->SetPointError(5,0,3.469158e-07); gre->SetPoint(6,50,2.868974e-05); gre->SetPointError(6,0,2.289007e-07); gre->SetPoint(7,75,2.402629e-05); gre->SetPointError(7,0,1.841689e-07); gre->SetPoint(8,100,2.111222e-05); gre->SetPointError(8,0,1.671758e-07); gre->SetPoint(9,200,1.755155e-05); gre->SetPointError(9,0,1.402065e-07); TH1 *Graph44 = new TH1F("Graph44","Graph",100,0.9,219.9); Graph44->SetMinimum(1.567021e-05); Graph44->SetMaximum(0.0009241643); Graph44->SetDirectory(0); Graph44->SetStats(0); Graph44->SetLineWidth(2); Graph44->SetMarkerStyle(20); Graph44->SetMarkerSize(1.3); Graph44->GetXaxis()->SetNdivisions(506); Graph44->GetXaxis()->SetLabelFont(42); Graph44->GetXaxis()->SetLabelOffset(0.015); Graph44->GetXaxis()->SetTitleSize(0.07); Graph44->GetXaxis()->SetTitleFont(42); Graph44->GetYaxis()->SetNdivisions(506); Graph44->GetYaxis()->SetLabelFont(42); Graph44->GetYaxis()->SetLabelOffset(0.015); Graph44->GetYaxis()->SetTitleSize(0.07); Graph44->GetYaxis()->SetTitleOffset(1.1); Graph44->GetYaxis()->SetTitleFont(42); Graph44->GetZaxis()->SetLabelFont(42); Graph44->GetZaxis()->SetLabelOffset(0.015); Graph44->GetZaxis()->SetTitleSize(0.07); Graph44->GetZaxis()->SetTitleOffset(1.1); Graph44->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph44); multigraph->Add(gre,"pX"); multigraph->Draw("LPX"); TF1 *f4 = new TF1("f4","sqrt(([0]*[0])+(([1]/(x*0.25))*([1]/(x*0.25))))",0.5,300); f4->SetFillColor(10); f4->SetFillStyle(0); f4->SetMarkerStyle(20); f4->SetMarkerSize(1.3); f4->SetLineColor(8); f4->SetLineWidth(2); f4->GetXaxis()->SetNdivisions(506); f4->GetXaxis()->SetLabelFont(42); f4->GetXaxis()->SetLabelOffset(0.015); f4->GetXaxis()->SetTitleSize(0.07); f4->GetXaxis()->SetTitleFont(42); f4->GetYaxis()->SetNdivisions(506); f4->GetYaxis()->SetLabelFont(42); f4->GetYaxis()->SetLabelOffset(0.015); f4->GetYaxis()->SetTitleSize(0.07); f4->GetYaxis()->SetTitleOffset(1.1); f4->GetYaxis()->SetTitleFont(42); f4->SetParameter(0,2e-05); f4->SetParError(0,0); f4->SetParLimits(0,0,0); f4->SetParameter(1,0.001); f4->SetParError(1,0); f4->SetParLimits(1,0,0); f4->Draw("CSAME"); TF1 *f5 = new TF1("f5","sqrt(([0]*[0])+(([1]/(x*0.9924))*([1]/(x*0.9924))))",0.5,300); f5->SetFillColor(10); f5->SetFillStyle(0); f5->SetMarkerStyle(20); f5->SetMarkerSize(1.3); f5->SetLineColor(4); f5->SetLineWidth(2); f5->GetXaxis()->SetNdivisions(506); f5->GetXaxis()->SetLabelFont(42); f5->GetXaxis()->SetLabelOffset(0.015); f5->GetXaxis()->SetTitleSize(0.07); f5->GetXaxis()->SetTitleFont(42); f5->GetYaxis()->SetNdivisions(506); f5->GetYaxis()->SetLabelFont(42); f5->GetYaxis()->SetLabelOffset(0.015); f5->GetYaxis()->SetTitleSize(0.07); f5->GetYaxis()->SetTitleOffset(1.1); f5->GetYaxis()->SetTitleFont(42); f5->SetParameter(0,2e-05); f5->SetParError(0,0); f5->SetParLimits(0,0,0); f5->SetParameter(1,0.001); f5->SetParError(1,0); f5->SetParLimits(1,0,0); f5->Draw("CSAME"); TLegend *leg = new TLegend(0.65,0.65,0.9,0.9,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(2); leg->SetTextSize(0.05); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("NULL","#theta = 7^{#circ}","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(22); entry->SetMarkerSize(1.3); entry=leg->AddEntry("NULL","#theta = 20^{#circ}","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(23); entry->SetMarkerSize(1.3); entry=leg->AddEntry("NULL","#theta = 30^{#circ}","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(8); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry=leg->AddEntry("NULL","#theta = 85^{#circ}","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); leg->Draw(); DeltaInvP all fits->Modified(); DeltaInvP all fits->cd(); DeltaInvP all fits->SetSelected(DeltaInvP all fits); DeltaInvP all fits->SaveAs("deltaInvP_all_fits.eps"); DeltaInvP all fits->SaveAs("deltaInvP_all_fits.gif"); }